package com.chanzany.adapter.interfaceBased;

public abstract class PowerAdapter implements DCOutput {
    protected final Voltage220V voltage220V;

    public PowerAdapter(Voltage220V voltage220V) {
        this.voltage220V = voltage220V;
    }

    @Override
    public int output5V() {
        return voltage220V.output220V();
    }

    @Override
    public int output9V() {
        return voltage220V.output220V();
    }

    @Override
    public int output12V() {
        return voltage220V.output220V();
    }

    @Override
    public int output24V() {
        return voltage220V.output220V();
    }
}
